package com.ztgf.shopping.models.service.shop;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.shopping.models.bo.shop.ShopBlacklistBO;
import com.ztgf.shopping.models.bo.shop.ShopBlacklistSaveBO;
import com.ztgf.shopping.models.dto.shop.ShopBlacklistDTO;
import com.ztgf.shopping.models.vo.shop.ShopBlacklistVO;

import java.util.List;

/**
 * 黑名单服务
 *
 * @author zhanghualang
 * @Date 2020-06-16 16:01:00
 */
public interface IShopBlacklistService extends IService<ShopBlacklistDTO> {
    boolean add(ShopBlacklistSaveBO saveBO);

    ShopBlacklistDTO getByCompanyName(String companyName, Integer type);//根据公司名查找

    ShopBlacklistDTO getByShopId(Long shopId, Integer type);//根据店铺ID查找

    Page<ShopBlacklistVO> getListBySelect(ShopBlacklistBO shopBlacklistBO);

    boolean deleteBlackById(Long id); //移除黑名单。同时恢复修改审核结果

    void deleteBlackBatchIds(String ids);

    boolean deleteBlackList(Long id); //移除黑名单。同时恢复修改审核结果

    void deleteBlackListBatchIds(String ids);
}
